#ifndef _FILEDIALOG_
#define _FILEDIALOG_

#include <boost/filesystem.hpp>
#include <vector>
#include <iostream>
#include <string>
#include "Graphics/Graphics.hpp"

namespace fs = boost::filesystem;

/**
* A window that allows browsing of filesystem. 
*/
class FileDialog:public Window{
private:
    /** Panel containing file name labels. */
	ScrollPanel* drawList;
	/** Window background. */
    sf::RectangleShape background;
    /** Current filesystem path the FileDialog is at. */
	fs::path currentPath;
public:
    FileDialog(int x, int y);

    bool selectedFile(std::string name);
    void loadPath(fs::path filepath);
};

#endif